package io.github.iogogogo.web;

import io.github.iogogogo.commons.support.wrapper.BaseResult;
import io.github.iogogogo.web.handler.ServletContextHandler;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

/**
 * Created by tao.zeng on 2024/11/17.
 */
public interface WebBaseApi extends BaseResult {

    default HttpServletRequest getRequest() {
        return ServletContextHandler.getRequest();
    }

    default HttpServletResponse getResponse() {
        return ServletContextHandler.getResponse();
    }
}
